using System.Drawing;
using SpoolFileLibrary.Reader.Winspool;

namespace SpoolFileLibrary.Reader.Emf {
    public class EmfPage : IPage {
        private readonly DeviceMode _deviceMode;
        private readonly Image _pageImage;
        private readonly Size _size;

        public EmfPage(Image preview, Size size) {
            this._pageImage = preview;
            this._size = size;
        }

        public EmfPage(Image preview, Size size, DeviceMode deviceMode) {
            this._pageImage = preview;
            this._size = size;
            this._deviceMode = deviceMode;
        }

        #region IPage Members

        public Image PageImage {
            get { return this._pageImage; }
        }

        public Size Size {
            get { return this._size; }
        }

        public IDeviceMode DeviceMode {
            get { return this._deviceMode; }
        }

        #endregion
    }
}